<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>main</title>
<jsp:include page="header.jsp"></jsp:include>
<link rel="stylesheet" href="../css/sidemenu.css">
<script type="text/javascript">
$(function(){
	$.get("../menu_2/list",function(data){
		$('#sm').sidemenu({
		    data: data, 
		    onSelect:function(item){
		    	//alert(item.text+"||"+item.attributes.url);
		    	if($("#tabs").tabs("exists",item.text)){
		    		$("#tabs").tabs("select",item.text);
		    	}else{
		    	 $("#tabs").tabs("add",{    
		    	    title:item.text,    
		    	    content:'<iframe src="'+item.attributes.url+'" style="width:100%;height:100%;"></iframe>',    
		    	    closable:true,       
		    	}); 
		    	}
		    }
		});
	},"json")	
});
</script>
</head>
<body class="easyui-layout">  
    <div data-options="region:'north',title:'全药通商城后台二级管理系统',split:true" style="height:100px;">
    	<div><img alt="" src="../images/bac_banner.png" style="width:100%;height:57px;"></div>
    </div>  
    <div data-options="region:'west',title:'功能菜单',split:true" style="width:210px;">
    	<div id="sm"></div>
    </div>   
    <div id="tabs" data-options="region:'center'" class="easyui-tabs" >
    	<div title="${loginProvider.name}的主页  " style="padding:5px;background:#eee;">
    		<img alt="" src="images/wel.jpg" style="height:100%;width:100%"></img>
    	</div>
    </div>   
</body>  
</html>